package com.yulinlin.core;

import feign.Request;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;

import java.util.concurrent.ThreadPoolExecutor;

@ComponentScan("com.yulinlin.core")
public class CoreConfig {


    @Bean
    @LoadBalanced
    public RestTemplate restTemplate(){

        RestTemplate restTemplate =   new RestTemplate();
        return restTemplate;
    }




}
